package enums;

import java.util.EnumSet;
import java.util.Set;

import com.google.common.collect.Sets;

/**
 * 
 * 微代任务状态说明<br />
 * 
 * @author zhiyuan
 * @version v1.0
 * @since 2017年3月31日 上午9:57:39
 */
public enum WdTaskStatus {

	//卖家状态
	WAIT_PAY("待支付"),
	WAIT_EXAMINE("待审核"),
	PROCESSING("进行中"),
	WAIT_BALANCE("待结算"),
	FINISHED("已完成"),
	NOT_PASS("已驳回"),
	CANCLED("已取消"),
	;
	
	//审核状态
	public static final Set<WdTaskStatus> EXAMINE_STATUS_LIST = Sets.newHashSet(WdTaskStatus.WAIT_EXAMINE,
			WdTaskStatus.NOT_PASS);
	
	public static final EnumSet<WdTaskStatus> SELLER_STATUS_LIST = EnumSet.of(WdTaskStatus.WAIT_PAY, WdTaskStatus.WAIT_EXAMINE,WdTaskStatus.NOT_PASS,
			WdTaskStatus.PROCESSING,WdTaskStatus.WAIT_BALANCE,WdTaskStatus.FINISHED,WdTaskStatus.CANCLED);    
	
	//可以取消的任务状态
	public static final EnumSet<WdTaskStatus> CAN_CANCLED_STATUS_LIST = EnumSet.of(WAIT_PAY,WAIT_EXAMINE,PROCESSING,NOT_PASS);
	
	public String title;
	
	private WdTaskStatus(String title){
		this.title = title;
	}
}
